package com.yzyz.utils.error;

/**
 * 错误信息
 * @author David Sun
 * @Date   2010-3-21
 *
 */
public class Error {
	public static String [] errorMsg = new String[40];
	
	public final static int PICTURE_SIZE_TOO_LARGE 	= 0;//图片大小应当小于2M
	public final static int PICTURE_SIZE_IS_ZERO 	= 1;//图片不能为空
	public final static int SUCCESS 				= -1;//
	public final static int ROUTE_PRICE_REQUIRED 	= 2;//请填写价格
	public final static int ROUTE_NAME_REQUIRED 	= 3;//请填写名称
	public final static int ROUTE_ID_REQUIRED 		= 4;//
	public final static int OBJECT_NOT_EXIST 		= 5;
	public final static int ROUTE_CONTENTS_REQUIRED = 6;
	public final static int ROUTE_KEY_WORDS_REQUIRED= 7;
	public final static int ROUTE_LEVEL_REQUIRED 	= 8;
	public final static int PICUTURE_OVER_COUNT 	= 9;//图片数量不能超过{0}
	public final static int CAN_NOT_FIND_OBJECT 	= 10;//找不到对象
	public final static int OP_FAILED 				= 11;
	public final static int PICTUE_DES_LESS_THAN_100= 12;
	public final static int FETCH_INFO_FAILED 		= 13;
	public final static int REGION_NAME_REQUIRED 	= 14;
	/**
	 * 景区不存在
	 */
	public final static int SCENIC_NOT_EXIST 		= 15;
	
	/**
	 * 酒店不存在
	 */
	public final static int HOTEL_NOT_EXIST 		= 16;
	
	/**
	 * 酒店名字不能为空
	 */
	public final static int HOTEL_NAME_REQUIRED 	= 17;
	
	/**
	 * 酒店地址不能为空
	 */
	public final static int HOTEL_ADDRESS_REQUIRED  = 18;
	
	/**
	 * 酒店描述不能为空
	 */
	public final static int HOTEL_DESCRIPTION_REQURIED = 19;
	
	/**
	 * 酒店描述太长
	 */
	public final static int HOTEL_DESCRIPTION_TOO_LONG = 20;
	
	static{
		errorMsg[PICTURE_SIZE_TOO_LARGE] 	= "图片大小应当小于2M";
		errorMsg[PICTURE_SIZE_IS_ZERO ] 	= "图片不能为空";
		errorMsg[ROUTE_PRICE_REQUIRED] 		= "请填写价格";
		errorMsg[ROUTE_NAME_REQUIRED] 		= "请填写名称";
		errorMsg[ROUTE_ID_REQUIRED] 		= "你操作的对象不存在";
		errorMsg[OBJECT_NOT_EXIST] 			= "您所操作的对象不存在";
		errorMsg[ROUTE_CONTENTS_REQUIRED] 	= "请填写行程描述";
		errorMsg[ROUTE_KEY_WORDS_REQUIRED] 	= "请填写关键字";
		errorMsg[ROUTE_LEVEL_REQUIRED] 		= "请选择显示级别";
		errorMsg[PICUTURE_OVER_COUNT] 		= "图片数量不能超过{0}";
		errorMsg[CAN_NOT_FIND_OBJECT] 		= "找不到对象";
		errorMsg[OP_FAILED] 				= "操作失败";
		errorMsg[PICTUE_DES_LESS_THAN_100] 	= "图片描述文字应该在100个汉字以内";
		errorMsg[FETCH_INFO_FAILED] 		= "获取数据失败";
		errorMsg[REGION_NAME_REQUIRED ] 	= "名称不能为空";
		errorMsg[SCENIC_NOT_EXIST] 			= "景区不存在";
		errorMsg[HOTEL_NOT_EXIST] 			= "酒店不存在";
		errorMsg[HOTEL_NAME_REQUIRED] 		= "酒店名字不能为空";
		errorMsg[HOTEL_ADDRESS_REQUIRED] 	= "酒店地址不能为空";
		errorMsg[HOTEL_DESCRIPTION_REQURIED]= "酒店描述不能为空";
		errorMsg[HOTEL_DESCRIPTION_TOO_LONG]= "酒店描述太长";
	}
	
}
